package com.wxq.yaoxia;

import com.wxq.net.NetWorkUserInterface;

import android.app.ProgressDialog;

public abstract class YXBaseNetActivity extends YXBaseActivity implements NetWorkUserInterface{
	
	ProgressDialog progressDialog;
	
	@Override
	public void beforeNetwork() {
		//添加提示信息
		progressDialog = new ProgressDialog(this);
		progressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
		progressDialog.setTitle("正在处理中...");
		progressDialog.setMessage("正在请求数据...");
		//progressDialog.setCancelable(false);
		progressDialog.show();
		
	}
	 
	@Override
	public void afterNetwork() {
		//移除提示信息
		progressDialog.cancel();
	}
	
}
